<?php
namespace app\admin\controller;

use app\admin\model\Member;

class Dashboard extends Base{
    protected $isSink = true;
    /**
     * @param string $start_time
     * @param string $end_time
     * @return \think\Response
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function test($start_time='',$end_time=''){
        $UserMoneyLog = new Member();
        // "SUM(CASE WHEN `change_score` like '+%' THEN `change_score` END) AS 获得猫粮",
        $data = $UserMoneyLog->getStatistics($start_time,$end_time);
        return $this->__s('',$data);
    }

}